package com.bckj.freshnow.cart.domain.qry;

import com.bckj.freshnow.cart.mapper.CartItemMapper;
import com.bckj.freshnow.cart.model.CartItemQuery;
import com.bckj.freshnow.cart.model.CartItemVO;
import lombok.RequiredArgsConstructor;
import org.springframework.stereotype.Component;

import java.util.List;

@Component
@RequiredArgsConstructor
public class CartItemListQryExe {

    private final CartItemMapper cartItemMapper;

    public List<CartItemVO> query(CartItemQuery query) {
        return cartItemMapper.findAll(query);
    }

}
